﻿import QtQuick 2.0
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12
import ConfigElementType 1.0
import "qrc:/qmlComponents/ConfigManager"
import "qrc:/qmlComponents/AxisModulePos"
import "qrc:/qmlComponents/VisionViewer"
import "qrc:/qmlComponents/CustomizedUIElement"

Item {
    ColumnLayout{
        XYZModulePos{
            moduleName: "SUTXYZ"
            posName: "ShotGlueDotPos"
        }

        RowLayout{
            ConfigRow{
                configName: "shotterTopToCameraOffsetX"
                configModel: aaConfig
                Component.onCompleted: {
                    autoInit()
                }
            }

            ConfigRow{
                configName: "shotterTopToCameraOffsetY"
                configModel: aaConfig
                Component.onCompleted: {
                    autoInit()
                }
            }

        }

        RowLayout{
            Button{
                text: qsTr("CalibrateShotterOffset")
                onClicked: {
                    tem.runSingleCmd(aaHead, "calibrateShotterToDownLookCameraOffset")
                }
            }
        }
    }
}
